import { sm2 } from "sm-crypto";

const publicKey:string ="04ad5161202264bb7c201f4cc39d6fb00fed81fc2cec1b3f23ddfb933d3f32977be40e4285cff6da4bad65933777c135b95f41846363086e34624ff73b3685e84c";

//网络传输加密. 
export function netEncrypt(data:string):string{
    return sm2.doEncrypt(data, publicKey)
}